// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'MaintenanceId',
        footer: "Foots",
        cnName: '维修方法',
        name: 'maintenancemodel',
        url: "/maintenancemodel/",
        sortName: "MaintenanceId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"MaintenanceCode":"","MaintenanceName":"","MaintenanceDescription":""};
    const editFormOptions = [[{"title":"维修方法编码","field":"MaintenanceCode","type":"text"}],
                              [{"title":"维修方法名称","field":"MaintenanceName","type":"text"}],
                              [{"title":"维修方法描述","field":"MaintenanceDescription","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'MaintenanceId',title:'维修方法id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'MaintenanceCode',title:'维修方法编码',type:'string',width:110,align:'left',sort:true},
                       {field:'MaintenanceName',title:'维修方法名称',type:'string',width:110,align:'left'},
                       {field:'MaintenanceDescription',title:'维修方法描述',type:'string',width:120,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}